import "vant/lib/index.css";
import "./assets/scss/comm.scss";
import { createApp } from "vue";
import router from "@/router";
import store from "@/store";
import "./utils/API/setRem";

import App from "./App";
import "./assets/css/index.css";
import "animate.css";
import { Lazyload } from "vant";

import PageView from "@/components/PageView";
import TitleBar from "@/components/TitleBar";
import MyLoading from "@/components/MyLoading";

const app = createApp(App);

app.component("page-view", PageView);
app.component("title-bar", TitleBar);
app.component("my-loading", MyLoading);

app.provide("baseURL", baseURL);

app.use(Lazyload, {
  lazyComponent: true,
  loading: require("./assets/img/loading.gif"),
  error: require("./assets/img/error.jpg"),
});
app.use(router);
app.use(store);
app.mount("#app");
